#include <iostream>
#include "myheap.cpp"
using namespace std;
void output(int i)
{
cout<<i<<",";
}

int main()
{
cout<<"start...";
int a[]={12,1,34,2,5,78,89,34,6};
MinHeap heap(a,9);
heap.out=output;
for(int i=0; i<9; i++)
{
cout<<heap[i]<<",";
}
cout<<"\n";
heap.Sort();
cout<<"\n";
for(int i=0; i<9; i++)
{
cout<<heap[i]<<",";
}
return 0;
}
